﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _037.委托补充
{
	internal class Program
	{
		static void Main(string[] args)
		{
			// Action 指向没有返回值的方法
			Action method =  Test1;
			method();

			Action<int> method2 = Test2;
			method2(9);

			Func<int> method3 = Test3;
            Console.WriteLine(method3());
        }

		private static void Test1()
		{
            Console.WriteLine("Test1");
        }

		private static void Test2(int x)
		{
			Console.WriteLine("Test2"+x);
		}

		private static int Test3()
		{
			Console.WriteLine("Test3");
			return 0;
		}
	}
}
